home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Template / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  8KB  |  333 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.ClearAll    \
  4.             o.Clone    \
  5.             o.Delete    \
  6.             o.Find    \
  7.             o.Free    \
  8.             o.Init    \
  9.             o.LinkSprite    \
  10.             o.LoadFile    \
  11.             o.UseOutFont    \
  12.             o.UseSprite    \
  13.  
  14.  
  15. LibName        =    Template
  16.  
  17.  
  18.  
  19. # Template makefile to make all .o files
  20. # and the SDLS Stubs file for DeskLib
  21. # sublibraries.
  22. # Julian Smith 16 Mar 1995.
  23.  
  24.  
  25. # The macro $(ObjectFiles) should be set at the 
  26. # start of this file, to be a space-separated
  27. # list of object files.
  28. # This is done by 'Makatic'.
  29.  
  30.  
  31. # The macro $(LibName) should also be set at the 
  32. # start of this file, to be the name of the 
  33. # DeskLib sublibrary.
  34. # This is done by 'Makatic'.
  35.  
  36. # Compiler and linker flags, These can be anything. 
  37. # All flags required by Straylight (eg CC -zM and
  38. # Link -rmf) are included in the macros $(CC) and
  39. # $(LINK).
  40. #
  41. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  42. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  43.  
  44.  
  45. # Macros for commands, including the Straylight
  46. # tool 'cdll'. Note that DRLink doesn't seem to
  47. # work with the SDLS.
  48. #
  49. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  50. ASM        =    ObjAsm $(ASMFlags)
  51. CDLL        =    cdll
  52. LINK        =    link
  53. AS        =    as -dde -throwback
  54.  
  55.  
  56. # filename of DLL Stubs aof file. This is linked with client apps.
  57. DLL_Stubs    =    Stubs
  58.  
  59.  
  60. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  61. #
  62. # DLL_Def:        Standard definition file as per SDLS docs.
  63. # DLL_OtherStubsSource    Assembler source to be partially linked into
  64. #            the final stubs file. This will force linking
  65. #            in of stubs from any other DLLs used by this
  66. #            library when a client application is built.
  67. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  68. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  69. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  70. #            for all DeskLib DLLs used by this library, and
  71. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  72. #
  73. DLL_Def            =    ^.DLLDef
  74. DLL_OtherStubsSource    =    ^.OtherStubs
  75.  
  76. DLL_PlainStubs        =    PlainStubs
  77. DLL_OtherStubsObject    =    OSObj
  78.  
  79. # -------------------------------------------------------
  80. # Everything below here should probably not be changed...
  81. # -------------------------------------------------------
  82.  
  83.  
  84.  
  85. # Now all the rules...
  86.  
  87.  
  88. # Here's the two things we want to make...
  89. #
  90. All:    $(DLL_Stubs) $(ObjectFiles)
  91.  
  92. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  93.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  94.  
  95. $(DLL_PlainStubs):    $(DLL_Def)
  96.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  97.  
  98.  
  99. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  100. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  101.  
  102. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  103.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  104.  
  105.  
  106. $(DLL_Def):    
  107.     | Warning: No DLL definition file exists.
  108.     | Creating a default DLL definition file: $(DLL_Def)
  109.     | This will have to be altered by hand.
  110.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  111.  
  112.  
  113.  
  114. # Rule for compiling C source code for a Straylight dynamically-linked library.
  115.  
  116. VPATH = @.^
  117.  
  118. .SUFFIXES:    .o .c .s
  119.  
  120. .c.o:
  121.     $(CC) -o $@ $<
  122.  
  123. .s.o:
  124.     $(ASM) $(ASMFlags) -from $< -to $@
  125.  
  126.  
  127.  
  128. # Dynamic dependencies:
  129. o.ClearAll:    ^.c.ClearAll
  130. o.ClearAll:    ^.h.TempDefs
  131. o.ClearAll:    C:h.stdlib
  132. o.ClearAll:    C:h.stdio
  133. o.ClearAll:    C:h.string
  134. o.ClearAll:    DeskLib:h.LinkList
  135. o.ClearAll:    DeskLib:h.Core
  136. o.ClearAll:    C:h.stddef
  137. o.ClearAll:    C:DLLLib.h.dll
  138. o.ClearAll:    C:h.kernel
  139. o.ClearAll:    DeskLib:h.WimpSWIs
  140. o.ClearAll:    DeskLib:h.Wimp
  141. o.ClearAll:    DeskLib:h.Error
  142. o.ClearAll:    DeskLib:h.Resource
  143. o.ClearAll:    DeskLib:h.Sprite
  144. o.ClearAll:    DeskLib:h.Coord
  145. o.ClearAll:    C:h.stdarg
  146. o.ClearAll:    DeskLib:h.Template
  147. o.ClearAll:    DeskLib:h.StringCR
  148. o.ClearAll:    DeskLib:h.Str
  149. o.ClearAll:    C:h.stddef
  150. o.ClearAll:    DeskLib:h.Font
  151. o.Clone:    ^.c.Clone
  152. o.Clone:    ^.h.TempDefs
  153. o.Clone:    C:h.stdlib
  154. o.Clone:    C:h.stdio
  155. o.Clone:    C:h.string
  156. o.Clone:    DeskLib:h.LinkList
  157. o.Clone:    DeskLib:h.Core
  158. o.Clone:    C:h.stddef
  159. o.Clone:    C:DLLLib.h.dll
  160. o.Clone:    C:h.kernel
  161. o.Clone:    DeskLib:h.WimpSWIs
  162. o.Clone:    DeskLib:h.Wimp
  163. o.Clone:    DeskLib:h.Error
  164. o.Clone:    DeskLib:h.Resource
  165. o.Clone:    DeskLib:h.Sprite
  166. o.Clone:    DeskLib:h.Coord
  167. o.Clone:    C:h.stdarg
  168. o.Clone:    DeskLib:h.Template
  169. o.Clone:    DeskLib:h.StringCR
  170. o.Clone:    DeskLib:h.Str
  171. o.Clone:    C:h.stddef
  172. o.Delete:    ^.c.Delete
  173. o.Delete:    ^.h.TempDefs
  174. o.Delete:    C:h.stdlib
  175. o.Delete:    C:h.stdio
  176. o.Delete:    C:h.string
  177. o.Delete:    DeskLib:h.LinkList
  178. o.Delete:    DeskLib:h.Core
  179. o.Delete:    C:h.stddef
  180. o.Delete:    C:DLLLib.h.dll
  181. o.Delete:    C:h.kernel
  182. o.Delete:    DeskLib:h.WimpSWIs
  183. o.Delete:    DeskLib:h.Wimp
  184. o.Delete:    DeskLib:h.Error
  185. o.Delete:    DeskLib:h.Resource
  186. o.Delete:    DeskLib:h.Sprite
  187. o.Delete:    DeskLib:h.Coord
  188. o.Delete:    C:h.stdarg
  189. o.Delete:    DeskLib:h.Template
  190. o.Delete:    DeskLib:h.StringCR
  191. o.Delete:    DeskLib:h.Str
  192. o.Delete:    C:h.stddef
  193. o.Find:    ^.c.Find
  194. o.Find:    DeskLib:h.GFX
  195. o.Find:    ^.h.TempDefs
  196. o.Find:    C:h.stdlib
  197. o.Find:    C:h.stdio
  198. o.Find:    C:h.string
  199. o.Find:    DeskLib:h.LinkList
  200. o.Find:    DeskLib:h.Core
  201. o.Find:    C:h.stddef
  202. o.Find:    C:DLLLib.h.dll
  203. o.Find:    C:h.kernel
  204. o.Find:    DeskLib:h.WimpSWIs
  205. o.Find:    DeskLib:h.Wimp
  206. o.Find:    DeskLib:h.Error
  207. o.Find:    DeskLib:h.Resource
  208. o.Find:    DeskLib:h.Sprite
  209. o.Find:    DeskLib:h.Coord
  210. o.Find:    C:h.stdarg
  211. o.Find:    DeskLib:h.Template
  212. o.Find:    DeskLib:h.StringCR
  213. o.Find:    DeskLib:h.Str
  214. o.Find:    C:h.stddef
  215. o.Free:    ^.c.Free
  216. o.Free:    ^.h.TempDefs
  217. o.Free:    C:h.stdlib
  218. o.Free:    C:h.stdio
  219. o.Free:    C:h.string
  220. o.Free:    DeskLib:h.LinkList
  221. o.Free:    DeskLib:h.Core
  222. o.Free:    C:h.stddef
  223. o.Free:    C:DLLLib.h.dll
  224. o.Free:    C:h.kernel
  225. o.Free:    DeskLib:h.WimpSWIs
  226. o.Free:    DeskLib:h.Wimp
  227. o.Free:    DeskLib:h.Error
  228. o.Free:    DeskLib:h.Resource
  229. o.Free:    DeskLib:h.Sprite
  230. o.Free:    DeskLib:h.Coord
  231. o.Free:    C:h.stdarg
  232. o.Free:    DeskLib:h.Template
  233. o.Free:    DeskLib:h.StringCR
  234. o.Free:    DeskLib:h.Str
  235. o.Free:    C:h.stddef
  236. o.Init:    ^.c.Init
  237. o.Init:    ^.h.TempDefs
  238. o.Init:    C:h.stdlib
  239. o.Init:    C:h.stdio
  240. o.Init:    C:h.string
  241. o.Init:    DeskLib:h.LinkList
  242. o.Init:    DeskLib:h.Core
  243. o.Init:    C:h.stddef
  244. o.Init:    C:DLLLib.h.dll
  245. o.Init:    C:h.kernel
  246. o.Init:    DeskLib:h.WimpSWIs
  247. o.Init:    DeskLib:h.Wimp
  248. o.Init:    DeskLib:h.Error
  249. o.Init:    DeskLib:h.Resource
  250. o.Init:    DeskLib:h.Sprite
  251. o.Init:    DeskLib:h.Coord
  252. o.Init:    C:h.stdarg
  253. o.Init:    DeskLib:h.Template
  254. o.Init:    DeskLib:h.StringCR
  255. o.Init:    DeskLib:h.Str
  256. o.Init:    C:h.stddef
  257. o.LinkSprite:    ^.c.LinkSprite
  258. o.LinkSprite:    DeskLib:h.Wimp
  259. o.LinkSprite:    DeskLib:h.Core
  260. o.LinkSprite:    C:h.stddef
  261. o.LinkSprite:    C:DLLLib.h.dll
  262. o.LinkSprite:    C:h.kernel
  263. o.LinkSprite:    DeskLib:h.Sprite
  264. o.LinkSprite:    DeskLib:h.Coord
  265. o.LinkSprite:    C:h.stdarg
  266. o.LinkSprite:    DeskLib:h.Template
  267. o.LinkSprite:    DeskLib:h.LinkList
  268. o.LoadFile:    ^.c.LoadFile
  269. o.LoadFile:    ^.h.TempDefs
  270. o.LoadFile:    C:h.stdlib
  271. o.LoadFile:    C:h.stdio
  272. o.LoadFile:    C:h.string
  273. o.LoadFile:    DeskLib:h.LinkList
  274. o.LoadFile:    DeskLib:h.Core
  275. o.LoadFile:    C:h.stddef
  276. o.LoadFile:    C:DLLLib.h.dll
  277. o.LoadFile:    C:h.kernel
  278. o.LoadFile:    DeskLib:h.WimpSWIs
  279. o.LoadFile:    DeskLib:h.Wimp
  280. o.LoadFile:    DeskLib:h.Error
  281. o.LoadFile:    DeskLib:h.Resource
  282. o.LoadFile:    DeskLib:h.Sprite
  283. o.LoadFile:    DeskLib:h.Coord
  284. o.LoadFile:    C:h.stdarg
  285. o.LoadFile:    DeskLib:h.Template
  286. o.LoadFile:    DeskLib:h.StringCR
  287. o.LoadFile:    DeskLib:h.Str
  288. o.LoadFile:    C:h.stddef
  289. o.UseOutFont:    ^.c.UseOutFont
  290. o.UseOutFont:    ^.h.TempDefs
  291. o.UseOutFont:    C:h.stdlib
  292. o.UseOutFont:    C:h.stdio
  293. o.UseOutFont:    C:h.string
  294. o.UseOutFont:    DeskLib:h.LinkList
  295. o.UseOutFont:    DeskLib:h.Core
  296. o.UseOutFont:    C:h.stddef
  297. o.UseOutFont:    C:DLLLib.h.dll
  298. o.UseOutFont:    C:h.kernel
  299. o.UseOutFont:    DeskLib:h.WimpSWIs
  300. o.UseOutFont:    DeskLib:h.Wimp
  301. o.UseOutFont:    DeskLib:h.Error
  302. o.UseOutFont:    DeskLib:h.Resource
  303. o.UseOutFont:    DeskLib:h.Sprite
  304. o.UseOutFont:    DeskLib:h.Coord
  305. o.UseOutFont:    C:h.stdarg
  306. o.UseOutFont:    DeskLib:h.Template
  307. o.UseOutFont:    DeskLib:h.StringCR
  308. o.UseOutFont:    DeskLib:h.Str
  309. o.UseOutFont:    C:h.stddef
  310. o.UseOutFont:    DeskLib:h.Font
  311. o.UseSprite:    ^.c.UseSprite
  312. o.UseSprite:    ^.h.TempDefs
  313. o.UseSprite:    C:h.stdlib
  314. o.UseSprite:    C:h.stdio
  315. o.UseSprite:    C:h.string
  316. o.UseSprite:    DeskLib:h.LinkList
  317. o.UseSprite:    DeskLib:h.Core
  318. o.UseSprite:    C:h.stddef
  319. o.UseSprite:    C:DLLLib.h.dll
  320. o.UseSprite:    C:h.kernel
  321. o.UseSprite:    DeskLib:h.WimpSWIs
  322. o.UseSprite:    DeskLib:h.Wimp
  323. o.UseSprite:    DeskLib:h.Error
  324. o.UseSprite:    DeskLib:h.Resource
  325. o.UseSprite:    DeskLib:h.Sprite
  326. o.UseSprite:    DeskLib:h.Coord
  327. o.UseSprite:    C:h.stdarg
  328. o.UseSprite:    DeskLib:h.Template
  329. o.UseSprite:    DeskLib:h.StringCR
  330. o.UseSprite:    DeskLib:h.Str
  331. o.UseSprite:    C:h.stddef
  332.